package idiet.bean;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;
import java.math.BigDecimal;


/**
 * The persistent class for the rnis database table.
 * 
 */
@Entity
@Table(name="rnis")
public class Rni implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int id;
	@Column(name="lower_limit_age")
	private int lowerAge;
	@Column(name="upper_limit_age")
	private int upperAge;

	private BigDecimal ai;

	private BigDecimal ear;
	
	private String gender;

	@Column(name="lm_timestamp")
	private Timestamp lmTimestamp;
	@ManyToOne
	@JoinColumn(name="pal_id")
	private CustomerPal	customerPal;
	@ManyToOne
	@JoinColumn(name="item_id")
	private FoodIngredientElement foodIngredientElement;
	
	private BigDecimal rni;

	private String type;

	private BigDecimal ul;

	public Rni() {
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getLowerAge() {
		return lowerAge;
	}

	public void setLowerAge(int lowerAge) {
		this.lowerAge = lowerAge;
	}

	public int getUpperAge() {
		return upperAge;
	}

	public void setUpperAge(int upperAge) {
		this.upperAge = upperAge;
	}

	public BigDecimal getAi() {
		return this.ai;
	}

	public void setAi(BigDecimal ai) {
		this.ai = ai;
	}

	public BigDecimal getEar() {
		return this.ear;
	}

	public void setEar(BigDecimal ear) {
		this.ear = ear;
	}

	public String getGender() {
		return this.gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public Timestamp getLmTimestamp() {
		return this.lmTimestamp;
	}

	public void setLmTimestamp(Timestamp lmTimestamp) {
		this.lmTimestamp = lmTimestamp;
	}

	
	public CustomerPal getCustomerPal() {
		return customerPal;
	}

	public void setCustomerPal(CustomerPal customerPal) {
		this.customerPal = customerPal;
	}

	public FoodIngredientElement getFoodIngredientElement() {
		return foodIngredientElement;
	}

	public void setFoodIngredientElement(FoodIngredientElement foodIngredientElement) {
		this.foodIngredientElement = foodIngredientElement;
	}

	public BigDecimal getRni() {
		return this.rni;
	}

	public void setRni(BigDecimal rni) {
		this.rni = rni;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public BigDecimal getUl() {
		return this.ul;
	}

	public void setUl(BigDecimal ul) {
		this.ul = ul;
	}

}